package com.ruoyi.basedata.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.*;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户配置对象 t_user_terminalsxb_join
 *
 * @author gdqt
 * @date 2025-07-09
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserTerminalsVO implements Serializable {

    private static final long serialVersionUID = 3094220249296963682L;

    private String tenantId;

    /** 用户主键Id */
    private String userId;

    /** 能耗分类;水，电，气 */
    private Integer energyType;

    /** $column.columnComment */
    private String locationNb;

    private String terminalId;

    private String terminalName;

    //当类型为电表时，表示组合有功电能1 combination_active_energy_1
    private BigDecimal totalFlow;
    //正向
    private BigDecimal readNumber;
    //反向
    private BigDecimal reverseNumber;

    /** 抄表时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date readDate;
}
